<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<script>
    function submit_item(dom){
        var obj=$(dom);
        var message=obj.data("confirm");
        if(message){
            if(!confirm(message)){
                return;
            }
        }
        location.href=obj.data("action");
    }
    function submit_multi(dom){
        var obj=$(dom);
        var message=obj.data("confirm");
        if(message){
            if(!confirm(message)){
                return;
            }
        }
        location.href=obj.data("action") + "?" + $(dom.form).serialize();
    }
    function submit_filter(dom){
        var obj=$(dom);
        var message=obj.data("confirm");
        if(message){
            if(!confirm(message)){
                return;
            }
        }
        location.href=obj.data("action") + "?" + $(dom.form).serialize();
    }
    function submit_entire(dom){
        var obj=$(dom);
        var message=obj.data("confirm");
        if(message){
            if(!confirm(message)){
                return;
            }
        }
        location.href=obj.data("action");
    }
</script>
